#include<iostream>
using namespace std;
#define N 9
int tag[N],arr[N] = {9,3,2,9,4,2,6,3,7};

void find_uniq(){
    int i,j;
    memset(tag,0,N);
    for(i=0;i<N;i++){
        if(tag[i])
            continue;
        for(j=i+1;j<N;j++){
            if(tag[j])
                continue;
            if(arr[i]==arr[j]){
                tag[i] = tag[j] = 1;
                break;
            }
        }
    }

    for(i=0;i<N;i++)
        if(!tag[i])
            cout << arr[i]<< " ";
}

int main(){
    find_uniq();
    return 0;
}
